package com.bwie.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.util.Date;
import lombok.Data;

/**
 * 抢单记录表
 * @TableName tb_order_grab_records
 */
@TableName(value ="tb_order_grab_records")
@Data
public class TbOrderGrabRecords {
    /**
     * 抢单记录ID
     */
    @TableId(type = IdType.AUTO)
    private Long grabId;

    /**
     * 订单ID
     */
    private Long orderId;

    /**
     * 司机ID
     */
    private Long driverId;

    /**
     * 抢单时间
     */
    private Date grabTime;

    /**
     * 抢单结果: 0-失败, 1-成功
     */
    private Integer grabResult;

    /**
     * 失败原因
     */
    private String failReason;
}